<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="id" label="日期" width="180"></el-table-column>
      <el-table-column
        prop="username"
        label="姓名"
        width="180"
      ></el-table-column>
      <el-table-column prop="avatarUrl" label="地址"></el-table-column>
      <el-table-column prop="gender" label="地址"></el-table-column>
      <el-table-column prop="userPassword" label="地址"></el-table-column>
      <el-table-column prop="phone" label="地址"></el-table-column>
      <el-table-column prop="email" label="地址"></el-table-column>
      <el-table-column prop="userStatus" label="地址"></el-table-column>
      <el-table-column prop="createTime" label="地址"></el-table-column>
      <el-table-column prop="updateTime" label="地址"></el-table-column>
      <el-table-column prop="isDelete" label="地址"></el-table-column>
      <el-table-column prop="userRole" label="地址"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "flogin",
  data() {
    return {
      tableData: [],
    };
  },
  created() {
    this.load();
  },
  methods: {
    load() {
      fetch("http://localhost:9090/user/list")
        .then((res) => res.json())
        .then((res) => {
          console.log(res);
          this.tableData = res;
        });
    },
  },
};
</script>


<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>